﻿
namespace JoelAbrahamsson.Web.Common.HtmlFiltering
{
    public class DoubleEncodedAngleBracketsFilter : ITextNodeFilter
    {
        public string Filter(string text, HtmlAgilityPack.HtmlNode originalNode)
        {
            return text
                .Replace("&amp;lt;", "&lt;")
                .Replace("&amp;gt;", "&gt;");
        }
    }
}
